package com.ethink.order.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.ethink.framework.common.db.SuperEntity;

/**
 * TOB销售单 数据库实体
 *
 * @author default
 * @date 2022-11-16
 */
@Data
@TableName("t_tob_sale_order")
public class TobSaleOrder extends SuperEntity {

    public static final String ORDER_NO ="order_no";

    public static final String ORDER_STATUS ="order_status";

    public static final String PO_ORDER_NO ="po_order_no";

    public static final String PR_ORDER_NO ="pr_order_no";

    public static final String CURRENCY_CODE ="currency_code";

    public static final String CURRENCY_NAME ="currency_name";

    public static final String IN_SUB_WAREHOUSE_CODE ="in_sub_warehouse_code";

    public static final String IN_SUB_WAREHOUSE_NAME ="in_sub_warehouse_name";

    public static final String OUT_SUB_WAREHOUSE_CODE ="out_sub_warehouse_code";

    public static final String OUT_SUB_WAREHOUSE_NAME ="out_sub_warehouse_name";

    public static final String SALE_CHANNEL ="sale_channel";

    public static final String SALE_SUB_CHANNEL ="sale_sub_channel";

    public static final String CREATE_USER_CODE ="create_user_code";

    public static final String CREATE_USER_NAME ="create_user_name";

    public static final String FLOW_ID ="flow_id";


    /** TOB销售单号 */
    private String orderNo;

    /** 枚举 订单状态:1-草稿(s1)|2-审批中(s2)|3-待物流运输(s3)|4-待结算(s4)|5-完成(s5) */
    private Integer orderStatus;

    /** PO单号 */
    private String poOrderNo;

    /** PR单号 */
    private String prOrderNo;

    /** 货币编码 */
    private String currencyCode;

    /** 货币名称 */
    private String currencyName;

    /** 收货分仓编码 */
    private String inSubWarehouseCode;

    /** 收货分仓名称 */
    private String inSubWarehouseName;

    /** 发货分仓编码 */
    private String outSubWarehouseCode;

    /** 发货分仓名称 */
    private String outSubWarehouseName;

    /** 订单来源 */
    private String saleChannel;

    /** 订单来源下级 */
    private String saleSubChannel;

    /** 制单人账号 */
    private String createUserCode;

    /** 制单人名称 */
    private String createUserName;

    /** 审批流程ID */
    private String flowId;

}
